<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
        // 练习的垃圾分类项目 获取用户的 token

        // async function queryInfo(){
        //     var res = await axios.post('http://218.28.99.154:5000/Base_Manage​/Home​/SubmitLogin')
        //     console.log(res)
        // }
        // queryInfo()

        axios.post('http://218.28.99.154:5000/Base_Manage/Home/SubmitLogin',{
            userName: "admin",
            password: "123456"

        })
        .then((res)=>{
            console.log(res)
            if(res.status === 200){
                alert('登录成功')
            }else{
                alert('登录失败')
            }
        })
    </script>
</body>
</html>